<?php
require_once(dirname(realpath(__FILE__)) . '/FiltreBase.class.php');

class FiltreVide extends FiltreBase {

	public function __construct()
	{
		parent::__construct("`\#FILTRE_vide\(([^\|]*)\|\|([^\)]+)\)`");
	}

	public function calcule($match)
	{
		return trim($match[1]) == '' ? '' : $match[2];
	}
}
?>
